home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Sound Cards
/
Programming Sound Cards.iso
/
sound_17
/
cdda.doc
next >
Wrap
Text File
|
1995-01-01
|
7KB
|
166 lines
CDDA Version 0.9a - This is the first public release of CDDA.
CDDA - What is it?
------------------
CDDA is a simple utility to allow the transfer of the DA (audio) tracks
from a CD to a hard drive. This release only supports the Toshiba 3401
CD-ROM drive and a SCSI controller running an ASPI driver, and MSCDEX.
Because the 3401 needs proprietary commands to setup and read the audio
sectors, I chose to talk to the drive through the ASPI interface. I hope
that most people with the 3401 have gone the ASPI route. The program
also uses a few of the MSCDEX commands.
How do I use this program?
--------------------------
This is a command line utility which allows the user to specify the start
and end points of the data transfer and the output type. The start and
end points may be entered in one of three modes,: LBA, MSF and track.
Logical Block Address mode is the number of the frame from the start of
the disc. Minute, Second, Frame mode specifies the time from the start
of the disc in actual time. Track mode allows you to dump an entire track
(or song) to disk. The LBA and MSF are related by the following formula:
LBA = Minutes * 60 * 75 + Seconds * 75 + Frames + 150
The 150 at the end is because there are 2 empthy seconds at the start of
a CD.
For the options /S /E /F which expect a following parameter, remember that
there needs to be a space between the letter and the parameter. ie if you
enter /S01:10:10, it would come up as an error, but if you entered
/S 01:01:01, it would be correct. For the MSF mode, there need to
be 2 digits for each of minutes, seconds and frames or it will come up as
an error. When entering the filename with the /F, don't include an
extension, as the software automagically adds the extension for you.
These problems with the command line interface will hopefully
be cleared up by the next version of the software.
At present there are only two file formats supported, WAVE and Binary.
There is also the option to dump the data in HEX format out to the
STDOUT device. I am not planning to add many more formats because there
are plenty of other programs out there that will do the conversions much
better than I can. Besides, the whole purpose of this program was to
get the raw data out to the hard disk, not duplicate SOX.
The binary format has the samples stored in the order Left LSB, Left MSB,
Right LSB, Right MSB. The samples are 16 bit 44,100 KHz stereo.
On every CD there is a bit which defines if copying a particular track is
permitted or prohibited. CDDA checks this bit and will not continue
with the dump to disk. I have included an override option /O which forces
the user to explicitly specify and to knowingly copy a copy prohibited
song.
One thing to remember is that this audio fills up the hard disk fast. It
takes between 9 and 10 megabytes per minute. Because of this I put in a
check to make sure that you will have enough space to put the
requested samples. As well there is the /U option which will give you
an estimate of how much disk space will be used without actually dumping
the data to disk.
Examples
--------
CDDA /MSF /S 10:14:36 /E 13:55:11 /F outfile /W
will dump using MSF mode from 10:14:36 to 13:55:11 to a WAVE file
CDDA /LBA /S 106232 /E 109443 /F outfile /B
will dump using MSF mode from 106232 to 109443 to a Binary file
CDDA /T 2 /F outfile /W /O
will dump the entire track 2 to a WAVE file with the override mode on
CDDA /T 2 /U
will display the estimated disk space for all of track 2
CDDA /T 2 /H
will dump the entire track 2 in HEX to STDOUT
What kind of help is there?
---------------------------
There is very limited help from the command line for CDDA. You can get
the "USAGE" by just typing CDDA.e.g.:
C:>CDDA
CDDA - Ver. 0.9a - Toshiba 3401/ASPI CD-DA Mode Audio Dump Program
(c) Copyright 1993, Computall Services
Usage: CDDA /(mode) [/U,H,B,W] [O] /S <start> /E <end> /F filename.
modes are LBA, MSF, T
/MSF - times in minute, second, frame format (MM:SS:FF)
/LBA - times in Logical Block Address format (xxxxxx)
/T - send whole track to file
/S - Start time
/E - End time
/U - estimated disk usage required for data
/H - hex dump of sectors to stdout
/B - write to file in Binary format
/W - write to file in WAVE format (default file format)
/O - override copy protection bit
Binary mode extension CDA will automagically added to the filename
Wave format extension WAV will automagically added to the filename
e.g. CDDA /MSF /S 10:14:36 /E 13:55:11 /F outfile /W
e.g. CDDA /LBA /S 106232 /E 109443 /F outfile /B
e.g. CDDA /T 2 /F outfile
e.g. CDDA /T 2 /U
e.g. CDDA /T 2 /H
Copying and Registration (does he mean this costs $$$?)
--------------------------------------------
I am allowing full freedom to copy this program. It IS a fully functional
version. It is NOT Crippleware! There is NOT a pro version available for
an ungodly sum of money. I'm NOT asking for $ to register this program.
What I am asking is, that if you use this program to let me know (via EMAIL,
snail mail, Carrier Pigeon etc.), AND if your karma so directs you to make
a small donation to a local charity.
I would also like to try and keep all the files together and unchanged
in the archive, so if you are passing this around try your best. If you
are one of those Shareware houses, I don't want to see this program
available for $6.99 plus shipping and handling. I don't like seeing
the average Joe getting burned for a 10 cent disk, 1 cent label and 2 cents
worth of labour to make the disk, especially when he can get 600+ Meg
of really good stuff from something like the Simtel CD (thanks Robert)
for $25.
How to get hold of me
---------------------
If you want to mail me about problems or to tell me I'm going to rot in hell
for copying music, put your message in a file and copy it to the NUL device.
If you wnat to make suggestions or want to send compliments you can contact
me below.
EMAIL: jmclaugh@bnr.ca (best bet)
or jimbo@earth2.pinetree.org (takes a couple of days more)
Snail Mail:
Jim McLaughlin
449 Viewmount Dr.
Nepean, Ont.
Canada
K2E 7P1
Things on my wish list of new functions
---------------------------------------
I want to add support for the other CDROM drives that can read DA sectors
over the SCSI, but I don't have access to these drives. If someone could
supply me with the programming information, I could try and do up a new
version of CDDA.
The command line interface is not as clean as I would like it. I will
be spending some time and cleaning it up for the next release.
If I can dig up the VOC file spec (read: if someone has it and can send
it to me), I'll add it in the next release.